package org.ccay.core.exception;

import java.io.Serializable;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

/**
 * Web 错误存储器	
 * 
 * @since 2012-2-2
 */
@JsonIgnoreProperties(value="class")
public final class FaultVO implements Serializable {
	
	
	/**
	 * @return the httpCode
	 */
	public int getHttpCode() {
		return httpCode;
	}

	/**
	 * @param httpCode the httpCode to set
	 */
	public void setHttpCode(int httpCode) {
		this.httpCode = httpCode;
	}

	private static final long serialVersionUID = 5927136335508462748L;

	/**
	 * 错误码
	 */
	private String code ;
	
	/**
	 * Http 状态码
	 */
	private int httpCode;
	
	/**
	 * 关联实体
	 */
	private String entity;
	
	/**
	 * 错误信息
	 */
	private String message ;
	/**
	 * 异常标识码
	 */
	private String faultUid ;
	
	/**错误stackTrace */
	private String stackTrace;
	/**
	 * @return the faultUid
	 */
	public String getFaultUid() {
		return faultUid;
	}

	/**
	 * @param faultUid the faultUid to set
	 */
	public void setFaultUid(String faultUid) {
		this.faultUid = faultUid;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * @return the entity
	 */
	public String getEntity() {
		return entity;
	}

	/**
	 * @param entity the entity to set
	 */
	public void setEntity(String entity) {
		this.entity = entity;
	}

	/**
	 * @return the stackTrace
	 */
	public String getStackTrace() {
		return stackTrace;
	}

	/**
	 * @param stackTrace the stackTrace to set
	 */
	public void setStackTrace(String stackTrace) {
		this.stackTrace = stackTrace;
	}
}
